package com.ruoyi.StarStudio.Domain;

import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Soil {

    private long soil_id;  //土壤id
    @Excel(name = "土壤温度")
    private double soil_temperature;  //土壤温度
    @Excel(name = "土壤水分含量")
    private double soil_moisture;  //土壤水分
    @Excel(name = "土壤PH值")
    private double soil_ph;  //土壤PH值
    @Excel(name = "土壤数据更新时间")
    private Timestamp soil_updateTime;  //土壤数据更新时间
    private int zone_id;  //地块id
    @Excel(name = "所属地块")
    private String zone_name;  //地块名

    /** 请求参数 */
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
